/**
 * Created by xuelei.kong on 2016/5/4.
 */
$(function () {
    <!-- 实例化编辑器 -->
    var ue = UE.getEditor('container',{
        initialFrameHeight:500
    });
    $("#file_upload").uploadify({
        height        : 30,
        width         : 120,
        auto          :false,
        'fileTypeExts' : '*.flv; *.mp4; *.MPEG4,*.rm,*mov,*wmv',
        swf           : 'assets/uploadify/uploadify.swf',
        uploader      : 'assets/uploadify/uploadify.php',
        onSelect      :function () {
          $('.upload_btn').show();
        },
        onUploadSuccess  : function(file,data,response) {
            console.log(file);
            console.log(data);
            console.log(response);
            //设置图片预览
            var _arr_val = data.split(",");
            $("#photo").val(_arr_val[1]);
            $("#pic_view").attr("src","<%=request.getContextPath()%>" + _arr_val[1]);
        }

    });
})


